//
//  MyOrdersTableViewCell.m
//  NiuNiuPacking
//
//  Created by Janny on 14-10-1.
//  Copyright (c) 2014年 Reseek. All rights reserved.
//

#import "MyOrdersTableViewCell.h"
#import "SecondViewController.h"

@interface MyOrdersTableViewCell ()

@end

@implementation MyOrdersTableViewCell

@synthesize OrderInfo;

@synthesize Date;
@synthesize Time;
@synthesize State;
@synthesize Title;

@synthesize lbDate;
@synthesize lbTime;
@synthesize lbState;
@synthesize lbTitle;

-(void)setDate:(NSString *)newVal{
    if(![newVal isEqualToString:Date]){
        Date = [newVal copy];
        self.lbDate.text = Date;
    }
}
-(void)setTime:(NSString *)newVal{
    if(![newVal isEqualToString:Time]){
        Time = [newVal copy];
        self.lbTime.text = Time;
    }
}
-(void)setState:(NSString *)newVal{
    if(![newVal isEqualToString:State]){
        State = [newVal copy];
        self.lbState.text = State;
    }
}
-(void)setTitle:(NSString *)newVal{
    if(![newVal isEqualToString:Title]){
        Title = [newVal copy];
        self.lbTitle.text = Title;
    }
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
        {
            }
    return self;
}
- (BOOL)touchesShouldCancelInContentView:(UIView *)view{
    if([view isKindOfClass:[SecondViewController class]]){
        return NO;
    }
    else{
        return YES;
    }
}

- (void)dealloc {
//    [_lbDate release];
//    [_lbTime release];
//    [_lbState release];
//    [_lbTitle release];
//    [_lbState release];
//    [_tvcMyOrders release];
 //   [super dealloc];
}
@end
